/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package leilaomarotojmsrmi;

import java.net.MalformedURLException;
import java.rmi.AlreadyBoundException;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;
import javax.jms.JMSException;
import javax.naming.NamingException;

/**
 *
 * @author Alice
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws JMSException, NamingException, InterruptedException, RemoteException, AlreadyBoundException, MalformedURLException, NotBoundException {
            Processo pc = new Processo();
            
            pc.inicializarSubscriber();
            
            Thread.sleep(6000);
            
            //não precisa para as outras aplicações.
            pc.criandoLeilao();
            
            
            
            
            Thread.sleep(2000);
        
            //LeilaoGrafico lg = new LeilaoGrafico();
            //lg.setVisible(true);
    }
}
